package com.tomdd.message.handler;

import com.tomdd.message.model.Message;
import com.tomdd.message.model.OutMessage;
import org.springframework.stereotype.Component;

import java.util.Date;

import static com.tomdd.message.enums.MessageTypeEnum.VIDEO;

/**
 * 视频类型消息处理器
 *
 * @author zx
 * @date 2025年04月25日 13:48
 */
@Component
public class VoiceMessageHandler extends AbstractMessageHandler {
    @Override
    public OutMessage handler(Message message) {
        return OutMessage.builder().outMessageTime(new Date()).messageType(VIDEO).outContent("视频上传后的url:"+message.getContent()).build();
    }
}
